package com.mlody.chapter1;

import com.mlody.chapter1.interfaces.FlyWithWings;
import com.mlody.chapter1.interfaces.Quack;

/**
 * Created by tmlod_000 on 2014-07-27.
 */
public class MallardDuck extends  Duck{
    public MallardDuck(){
      setFlyBehavior(new FlyWithWings());
        setQuackBehavior(new Quack());
    }
    public void display(){
        System.out.println("Looks like a Mallard");
    }
}
